package bairui.international.model.type;

/**
 *
 * (分公司员工金额记录类型)Type_BranchCompanyStaffMoneyRecord
 */
@com.lianjing.sh.processing.info.annotation.GenerateInfoModel
@com.lianjing.sh.model.common.annotation.Comment("分公司员工金额记录类型")
@com.lianjing.sh.processing.info.annotation.InfoComment("分公司员工金额记录类型")
public enum Type_BranchCompanyStaffMoneyRecord implements com.sh_lianjing.standard.EnumCommentable<Type_BranchCompanyStaffMoneyRecord> {

	/**
	 * (提现)Withdraw</br>
	 */
	@com.lianjing.sh.model.common.annotation.Comment("提现")
	@com.lianjing.sh.processing.info.annotation.InfoComment("提现")
	Withdraw("提现")
,
	/**
	 * (提现退回)WithdrawReturn</br>
	 */
	@com.lianjing.sh.model.common.annotation.Comment("提现退回")
	@com.lianjing.sh.processing.info.annotation.InfoComment("提现退回")
	WithdrawReturn("提现退回")
,
	/**
	 * (订单提成)Royalty</br>
	 */
	@com.lianjing.sh.model.common.annotation.Comment("订单提成")
	@com.lianjing.sh.processing.info.annotation.InfoComment("订单提成")
	Royalty("订单提成")
;

	private static java.util.Map<String, Type_BranchCompanyStaffMoneyRecord> Cache = new java.util.HashMap<>();
	static{
		for(Type_BranchCompanyStaffMoneyRecord enumItem : Type_BranchCompanyStaffMoneyRecord.values()){
			Cache.put(enumItem.getComment(), enumItem);
		}
	}

	private String comment;

	private Type_BranchCompanyStaffMoneyRecord(String comment){
		this.comment = comment;
	}

	@Override
	public String toString() {
		return comment;
	}

	@Override
	public String getComment() {
		return comment;
	}

	@Override
	public Type_BranchCompanyStaffMoneyRecord parseByComment(String comment) {
		return Type_BranchCompanyStaffMoneyRecord.parse(comment);
	}

	public static Type_BranchCompanyStaffMoneyRecord parse(String comment) {
		Type_BranchCompanyStaffMoneyRecord enumItem = Cache.get(comment);
		if(null == enumItem){
			 throw new com.sh_lianjing.standard.exception.EnumCommentableException(Type_BranchCompanyStaffMoneyRecord.class, comment);
		}
		return enumItem;
	}

}
